package com.estructura.mapadrid;


import android.media.MediaPlayer;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

//	private MediaPlayer introTheme;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_activity);
        
        Intent i = new Intent(this, UsuarioConocido.class );
        startActivity(i);

        
 /*       introTheme = MediaPlayer.create(MainActivity.this, R.raw.hearthbeat_sound);
    	SharedPreferences getData = PreferenceManager
    			.getDefaultSharedPreferences(getApplicationContext());
    	if (getData.getBoolean(Props.Comun.CB_SONIDO, true)) {
    		introTheme.start();
    	}
    	Thread timer = new Thread() {
    		@Override
    		public void run() {
    			try {
    				sleep(2000);// 3650
    			} catch (InterruptedException e) {
    				e.printStackTrace();
    			} finally {
    				finish();
    				Launch.lanzaActivity(MainActivity.this, Props.Action.LOGIN);
    			}
    		}
    	};
    	timer.start();*/
    	// Dialogos dialog = new Dialogos (this, "Hola", false,
    	// R.style.CenterDialog);
    	// dialog.show();
    }

/*    @Override
    protected void onPause() {
    	super.onPause();
    	introTheme.release();
    	finish();
    }*/

    /*public void lanzar(View view) {
        Intent i = new Intent(this, UsuarioConocido.class );
        startActivity(i);
  }*/
   @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main_activity, menu);
        return true;
    }
}


